#ifndef creole_regex_terminal_header
#define creole_regex_terminal_header

#include "result.h"
#include "regex_base.h"
#include <string>
#include <boost/lexical_cast.hpp>

class term : public regex_base
{
	std::string m;
	int length;

	regex_base* copy() const;

	public:
          term(const char x) : m(boost::lexical_cast<std::string>(x)) {}
		term(const std::string& s) : m(s),length(s.length()) {}
		match_result match(const std::string& s) const;
};

#endif
